//
//  TeacherOfUserDataNewTopic.m
//  Gift
//
//  Created by li cheng on 16/09/20
//  Copyright (c) Apon. All rights reserved.
//

#import "TeacherOfUserDataNewTopic.h"
#import "Way_Type_SetOfTeacherUserDataNewTopic.h"

@implementation TeacherOfUserDataNewTopic
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"way_type_set "]) {
        NSMutableArray<Way_Type_SetOfTeacherUserDataNewTopic *> *mArrrayOfWay_Type_SetOfTeacherUserDataNewTopic = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            Way_Type_SetOfTeacherUserDataNewTopic *way_Type_SetOfTeacherUserDataNewTopic = [Way_Type_SetOfTeacherUserDataNewTopic modelDic:dic];
            [mArrrayOfWay_Type_SetOfTeacherUserDataNewTopic addObject:way_Type_SetOfTeacherUserDataNewTopic];
        }
        _way_type_set = mArrrayOfWay_Type_SetOfTeacherUserDataNewTopic;
    }
}
- (void)setValue:(id)value forUndefinedKey:(nonnull NSString *)key{
    [super setValue:value forUndefinedKey:key];
    if ([key isEqualToString:@"id"]) {
        self.ID = value;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"way_type_set" : [Way_Type_SetOfTeacherUserDataNewTopic class]};
}

@end
